// 组件库内部的 registerComponents.js 示例
import TestUI from './TestUI';
import ComponentInjector from './ComponentInjector';
import myButton from './components/Button.vue';

const injector = new ComponentInjector(TestUI);
injector.register('form', 'myButton', myButton, {
  type: 'default',
  size: 'medium'
});

//假设有第二个组件

/*
injector.register('form', 'mytext', mytext, {
type: 'default',
size: 'medium'
});

 
*/


TestUI.install = (app) => {
  app.component('MyButton', TestUI.form.myButton({}));
  //假设有第二个组件
  //app.component('MyText', TestUI.form.mytext({}));
};

export default TestUI;